package com.ma.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;


import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: project
 * @Package: com.ma.entity
 * @ClassName: Team
 * @Author: YHHHH
 * @Description: 小组实体类
 * @Date: 2021/3/3 14:02
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Accessors(chain = true)
@TableName("team")
public class Team implements Serializable {
    @TableId(value = "teamId",type = IdType.AUTO)
    private Integer teamId;  //组号

    @TableField("teamName")
    private String teamName;  //组名

    @TableField("score")
    private Integer score;   //得分

    private Project project;        //项目

    private List<Student> students;  //组员

    private Teacher teacher;        //指导老师

    private List<Files> teamFiles;  //小组上传的文件
}
